package com.smartfactory.sail.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smartfactory.sail.dto.ContractAmountDto;
import com.smartfactory.sail.entity.Contract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartfactory.sail.entity.CustCareInfo;
import com.smartfactory.sail.vo.user.ListUserResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 合同表 Mapper 接口
 * </p>
 *
 * @author 王巨壁
 * @since 2019-07-24
 */
@Mapper
public interface ContractMapper extends BaseMapper<Contract> {

    List<Map<String,Object>> getListPage(IPage<Map<String,Object>> page, @Param("ew") Wrapper<Map<String,Object>> queryWrapper);

    Double getCarePriceByQueryParam(@Param("ew") Wrapper<Contract> queryWrapper);

    Double getMonthAmount();

    Double getHalfYearAmount();

    Double getYearAmount();
}
